package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_discover_resources;

import cn.com.api.mapper.ApiU_discover_resourcesMapper;

import cn.com.api.service.ApiU_discover_resourcesService;

/**
 * 
 **/
@Service
public class U_discover_resourcesServiceImplBase {
	@Autowired
	private ApiU_discover_resourcesMapper apiU_discover_resourcesMapper;
    
    // 根据id获取
	public ApiU_discover_resources findU_discover_resourcesById(Integer id){
		ApiU_discover_resources u_discover_resources = apiU_discover_resourcesMapper.findU_discover_resourcesById( id );
		return u_discover_resources;
	}
    
    //查看数据集
	public List<ApiU_discover_resources> findU_discover_resourcess(){
        List<ApiU_discover_resources> u_discover_resourcess = apiU_discover_resourcesMapper.findU_discover_resourcess();
		return u_discover_resourcess;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_discover_resourcessByMap(HashMap condition){
        List<Map<String, Object>> u_discover_resourcess = apiU_discover_resourcesMapper.findU_discover_resourcessByMap(condition);
		return u_discover_resourcess;
    }
    
	// 添加
	public int insertU_discover_resources(ApiU_discover_resources u_discover_resources){
		int ret_I= apiU_discover_resourcesMapper.insertU_discover_resources(u_discover_resources);
		return ret_I;
	}

	// 修改
	public int updateU_discover_resources(ApiU_discover_resources u_discover_resources){
		int ret_I= apiU_discover_resourcesMapper.updateU_discover_resources(u_discover_resources);
		return ret_I;
	}
	
    // 删除
	public int deleteU_discover_resources(Integer id){
		int ret_I= apiU_discover_resourcesMapper.deleteU_discover_resources( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


